import java.io.*;
import java.net.*;
import java.awt.*;
import javax.swing.*;

public class PokkeriKlient extends JApplet{
   BufferedReader br;
   PrintWriter pw;
   JTextArea ta=new JTextArea();
   public static final long serialVersionUID=1;
   public PokkeriKlient(){
     add(new JLabel("Saabuvad andmed"), BorderLayout.NORTH);
     add(ta);
	 try{
	    ta.append("proovib\n");
	    Socket sc=new Socket("localhost:5555", 3001);
		br=new BufferedReader(new InputStreamReader(sc.getInputStream()));
		pw=new PrintWriter(sc.getOutputStream(), true);
		pw.println("jaagup");
		ta.append("avanes\n");
	 } catch(Exception ex){
	    ta.append(ex.getMessage());
	 }
   }
}



